home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 38 / MF_UK_38_1.iso / Tutorials / AMT Tutorial / SOURCES / oMain_1.k < prev   
Encoding:
Text File  |  1996-04-17  |  8.6 KB  |  425 lines  |  [TEXT/MPS ]

  1. object oMain_1 is cDefaultContainer
  2. with
  3.     Binder is oBinder;
  4.     Label is -1;
  5.     Items is [
  6.         oFINAL_SCREEN_BLUE_BUTS_1_1,
  7.         o1_red_button_1_2,
  8.         o2_red_button_1_3,
  9.         o3_red_button_1_4,
  10.         o4_red_button_1_5,
  11.         o5_red_button_1_6,
  12.         o6_red_button_1_7,
  13.         oplus_red_button_1_8,
  14.         onegative_red_button_1_9,
  15.         oquit_red_button_1_10,
  16.         oJumanji_movie_1_11,
  17.         oMary_movie_1_12,
  18.         oSense_movie_1_13,
  19.         oNever_movie_1_14,
  20.         omorph_movie_1_16,
  21.         oCredits_movie_1_17
  22.     ];
  23. end;
  24.  
  25.  
  26. object oFINAL_SCREEN_BLUE_BUTS_1_1 is cPictureHandler
  27. with
  28.     Duration is -1;
  29.     Supplier is oFINAL_SCREEN_BLUE_BUTS_7_;
  30.     Behavior is cVRBehavior
  31.     has
  32.         Offscreen(theTarget)
  33.             do
  34.                 oBinder.SetTransition(oIrisOpen, 30);
  35.             end;
  36.         
  37.     with
  38.         Enabled is true; Shown is true; 
  39.         X is 0; Y is 0; Width is 640; Height is 480;
  40.     end;
  41. end;
  42.  
  43.  
  44. object o1_red_button_1_2 is cPictureHandler
  45. with
  46.     Duration is -1;
  47.     Supplier is o1_red_button_1_;
  48.     Behavior is cVRBehavior
  49.     has
  50.         MouseDown(theTarget, theX, theY)
  51.             do
  52.                 o1_red_button_1_2.Show(not o1_red_button_1_2.IsShown());
  53.                 oBinder.Refresh();
  54.                 -- No Effect
  55.                 oBinder.SetTransition(oIrisOpen, 30);
  56.                 oJumanji_movie_1_11.Show(not oJumanji_movie_1_11.IsShown());
  57.                 oJumanji_movie_1_11.GoToBeginning();
  58.                 oJumanji_movie_1_11.Run(not oJumanji_movie_1_11.IsRunning());
  59.                 oBinder.Refresh();
  60.             end;
  61.         
  62.         Finished(theTarget)
  63.             do
  64.                 oJumanji_movie_1_11.GoToBeginning();
  65.                 oJumanji_movie_1_11.Show(false);
  66.             end;
  67.         
  68.     with
  69.         Enabled is true; Shown is false; 
  70.         X is 448; Y is 43; Width is 60; Height is 57;
  71.     end;
  72. end;
  73.  
  74.  
  75. object o2_red_button_1_3 is cPictureHandler
  76. with
  77.     Duration is -1;
  78.     Supplier is o2_red_button_2_;
  79.     Behavior is cVRBehavior
  80.     has
  81.         MouseDown(theTarget, theX, theY)
  82.             do
  83.                 o2_red_button_1_3.Show(not o2_red_button_1_3.IsShown());
  84.                 oBinder.Refresh();
  85.                 -- No Effect
  86.                 oBinder.SetTransition(oIrisOpen, 30);
  87.                 oMary_movie_1_12.Show(not oMary_movie_1_12.IsShown());
  88.                 oMary_movie_1_12.GoToBeginning();
  89.                 oMary_movie_1_12.Run(not oMary_movie_1_12.IsRunning());
  90.                 oBinder.Refresh();
  91.             end;
  92.         
  93.         Finished(theTarget)
  94.             do
  95.                 oJumanji_movie_1_11.GoToBeginning();
  96.                 oMary_movie_1_12.Show(false);
  97.             end;
  98.         
  99.     with
  100.         Enabled is true; Shown is false; 
  101.         X is 519; Y is 43; Width is 64; Height is 60;
  102.     end;
  103. end;
  104.  
  105.  
  106. object o3_red_button_1_4 is cPictureHandler
  107. with
  108.     Duration is -1;
  109.     Supplier is o3_red_button_3_;
  110.     Behavior is cVRBehavior
  111.     has
  112.         MouseDown(theTarget, theX, theY)
  113.             do
  114.                 o3_red_button_1_4.Show(not o3_red_button_1_4.IsShown());
  115.                 oBinder.Refresh();
  116.                 -- No Effect
  117.                 oBinder.SetTransition(oIrisOpen, 30);
  118.                 oSense_movie_1_13.Show(not oSense_movie_1_13.IsShown());
  119.                 oSense_movie_1_13.GoToBeginning();
  120.                 oSense_movie_1_13.Run(not oSense_movie_1_13.IsRunning());
  121.                 oBinder.Refresh();
  122.             end;
  123.         
  124.         Finished(theTarget)
  125.             do
  126.                 oJumanji_movie_1_11.GoToBeginning();
  127.                 oSense_movie_1_13.Show(false);
  128.             end;
  129.         
  130.     with
  131.         Enabled is true; Shown is false; 
  132.         X is 449; Y is 112; Width is 58; Height is 59;
  133.     end;
  134. end;
  135.  
  136.  
  137. object o4_red_button_1_5 is cPictureHandler
  138. with
  139.     Duration is -1;
  140.     Supplier is o4_red_button_4_;
  141.     Behavior is cVRBehavior
  142.     has
  143.         MouseDown(theTarget, theX, theY)
  144.             do
  145.                 o4_red_button_1_5.Show(not o4_red_button_1_5.IsShown());
  146.                 oBinder.Refresh();
  147.                 -- No Effect
  148.                 oBinder.SetTransition(oIrisOpen, 30);
  149.                 oNever_movie_1_14.Show(not oNever_movie_1_14.IsShown());
  150.                 oNever_movie_1_14.GoToBeginning();
  151.                 oNever_movie_1_14.Run(not oNever_movie_1_14.IsRunning());
  152.                 oBinder.Refresh();
  153.             end;
  154.         
  155.         Finished(theTarget)
  156.             do
  157.                 oJumanji_movie_1_11.GoToBeginning();
  158.                 oNever_movie_1_14.Show(false);
  159.             end;
  160.         
  161.     with
  162.         Enabled is true; Shown is false; 
  163.         X is 525; Y is 112; Width is 53; Height is 60;
  164.     end;
  165. end;
  166.  
  167.  
  168. object o5_red_button_1_6 is cPictureHandler
  169. with
  170.     Duration is -1;
  171.     Supplier is o5_red_button_5_;
  172.     Behavior is cVRBehavior
  173.     has
  174.         MouseDown(theTarget, theX, theY)
  175.             do
  176.                 o5_red_button_1_6.Show(not o5_red_button_1_6.IsShown());
  177.                 oBinder.Refresh();
  178.                 -- No Effect
  179.                 oBinder.SetTransition(oIrisOpen, 30);
  180.                 omorph_movie_1_16.Show(not omorph_movie_1_16.IsShown());
  181.                 omorph_movie_1_16.GoToBeginning();
  182.                 omorph_movie_1_16.Run(not omorph_movie_1_16.IsRunning());
  183.                 oBinder.Refresh();
  184.             end;
  185.         
  186.         Finished(theTarget)
  187.             do
  188.                 omorph_movie_1_16.GoToBeginning();
  189.                 omorph_movie_1_16.Show(false);
  190.             end;
  191.         
  192.     with
  193.         Enabled is true; Shown is false; 
  194.         X is 445; Y is 184; Width is 59; Height is 55;
  195.     end;
  196. end;
  197.  
  198.  
  199. object o6_red_button_1_7 is cPictureHandler
  200. with
  201.     Duration is -1;
  202.     Supplier is o6_red_button_6_;
  203.     Behavior is cVRBehavior
  204.     has
  205.         MouseDown(theTarget, theX, theY)
  206.             do
  207.                 o6_red_button_1_7.Show(not o6_red_button_1_7.IsShown());
  208.                 oBinder.Refresh();
  209.                 -- No Effect
  210.                 oBinder.SetTransition(oIrisOpen, 30);
  211.                 oCredits_movie_1_17.Show(not oCredits_movie_1_17.IsShown());
  212.                 oCredits_movie_1_17.GoToBeginning();
  213.                 oCredits_movie_1_17.Run(not oCredits_movie_1_17.IsRunning());
  214.                 oBinder.Refresh();
  215.             end;
  216.         
  217.         Finished(theTarget)
  218.             do
  219.                 oCredits_movie_1_17.GoToBeginning();
  220.                 oCredits_movie_1_17.Show(false);
  221.             end;
  222.         
  223.     with
  224.         Enabled is true; Shown is false; 
  225.         X is 526; Y is 184; Width is 52; Height is 55;
  226.     end;
  227. end;
  228.  
  229.  
  230. object oplus_red_button_1_8 is cPictureHandler
  231. with
  232.     Duration is -1;
  233.     Supplier is oplus_red_button_12_;
  234.     Behavior is cVRBehavior
  235.     has
  236.         MouseDown(theTarget, theX, theY)
  237.             do
  238.                 theTarget.Show(true);
  239.                 oSoundVolume.StepIndexBy(1);
  240.                 -- No Effect
  241.             end;
  242.         
  243.         MouseUp(theTarget, theX, theY)
  244.             do
  245.                 theTarget.Show(false);
  246.             end;
  247.         
  248.     with
  249.         Enabled is true; Shown is false; 
  250.         X is 523; Y is 315; Width is 56; Height is 52;
  251.     end;
  252. end;
  253.  
  254.  
  255. object onegative_red_button_1_9 is cPictureHandler
  256. with
  257.     Duration is -1;
  258.     Supplier is onegative_red_button_10_;
  259.     Behavior is cVRBehavior
  260.     has
  261.         MouseDown(theTarget, theX, theY)
  262.             do
  263.                 theTarget.Show(true);
  264.                 oSoundVolume.StepIndexBy(-1);
  265.                 -- No Effect
  266.             end;
  267.         
  268.         MouseUp(theTarget, theX, theY)
  269.             do
  270.                 theTarget.Show(false);
  271.             end;
  272.         
  273.     with
  274.         Enabled is true; Shown is false; 
  275.         X is 448; Y is 318; Width is 56; Height is 50;
  276.     end;
  277. end;
  278.  
  279.  
  280. object oquit_red_button_1_10 is cPictureHandler
  281. with
  282.     Duration is -1;
  283.     Supplier is oquit_red_button_13_;
  284.     Behavior is cVRBehavior
  285.     has
  286.         MouseDown(theTarget, theX, theY)
  287.             do
  288.                 theTarget.Show(true);
  289.                 -- No Effect
  290.             end;
  291.         
  292.         MouseUp(theTarget, theX, theY)
  293.             do
  294.                 theTarget.Show(false);
  295.                 oBinder.Refresh();
  296.                 oBinder.Quit();
  297.             end;
  298.         
  299.     with
  300.         Enabled is true; Shown is false; 
  301.         X is 462; Y is 248; Width is 104; Height is 55;
  302.     end;
  303. end;
  304.  
  305.  
  306. object oJumanji_movie_1_11 is cMovieHandler
  307. with
  308.     Supplier is oJumanji_movie_8_;
  309.     Behavior is cVRBehavior
  310.     has
  311.         Finished(theTarget)
  312.             do
  313.                 o1_red_button_1_2.Show(false);
  314.                 oBinder.Refresh();
  315.                 oJumanji_movie_1_11.Show(false);
  316.                 oBinder.SetTransition(oIrisClose, 30);
  317.             end;
  318.         
  319.     with
  320.         Enabled is true; Shown is false; 
  321.         X is 89; Y is 95; Width is 240; Height is 180;
  322.     end;
  323. end;
  324.  
  325.  
  326. object oMary_movie_1_12 is cMovieHandler
  327. with
  328.     Supplier is oMary_movie_9_;
  329.     Behavior is cVRBehavior
  330.     has
  331.         Finished(theTarget)
  332.             do
  333.                 o1_red_button_1_2.Show(false);
  334.                 oBinder.Refresh();
  335.                 oMary_movie_1_12.Show(false);
  336.                 oBinder.SetTransition(oIrisClose, 30);
  337.             end;
  338.         
  339.     with
  340.         Enabled is true; Shown is false; 
  341.         X is 89; Y is 95; Width is 240; Height is 180;
  342.     end;
  343. end;
  344.  
  345.  
  346. object oSense_movie_1_13 is cMovieHandler
  347. with
  348.     Supplier is oSense_movie_14_;
  349.     Behavior is cVRBehavior
  350.     has
  351.         Finished(theTarget)
  352.             do
  353.                 o1_red_button_1_2.Show(false);
  354.                 oBinder.Refresh();
  355.                 oSense_movie_1_13.Show(false);
  356.                 oBinder.SetTransition(oIrisClose, 30);
  357.             end;
  358.         
  359.     with
  360.         Enabled is true; Shown is false; 
  361.         X is 89; Y is 95; Width is 240; Height is 180;
  362.     end;
  363. end;
  364.  
  365.  
  366. object oNever_movie_1_14 is cMovieHandler
  367. with
  368.     Supplier is oNever_movie_11_;
  369.     Behavior is cVRBehavior
  370.     has
  371.         Finished(theTarget)
  372.             do
  373.                 o1_red_button_1_2.Show(false);
  374.                 oBinder.Refresh();
  375.                 oNever_movie_1_14.Show(false);
  376.                 oBinder.SetTransition(oIrisClose, 30);
  377.             end;
  378.         
  379.     with
  380.         Enabled is true; Shown is false; 
  381.         X is 89; Y is 95; Width is 240; Height is 180;
  382.     end;
  383. end;
  384.  
  385.  
  386. object omorph_movie_1_16 is cMovieHandler
  387. with
  388.     Supplier is omorph_movie_16_;
  389.     Behavior is cVRBehavior
  390.     has
  391.         Finished(theTarget)
  392.             do
  393.                 o1_red_button_1_2.Show(false);
  394.                 oBinder.Refresh();
  395.                 omorph_movie_1_16.Show(false);
  396.                 oBinder.SetTransition(oIrisClose, 30);
  397.             end;
  398.         
  399.     with
  400.         Enabled is true; Shown is false; 
  401.         X is 89; Y is 95; Width is 240; Height is 180;
  402.     end;
  403. end;
  404.  
  405.  
  406. object oCredits_movie_1_17 is cMovieHandler
  407. with
  408.     Supplier is oCredits_movie_17_;
  409.     Behavior is cVRBehavior
  410.     has
  411.         Finished(theTarget)
  412.             do
  413.                 o6_red_button_1_7.Show(false);
  414.                 oBinder.Refresh();
  415.                 oCredits_movie_1_17.Show(false);
  416.                 oBinder.SetTransition(oIrisClose, 30);
  417.             end;
  418.         
  419.     with
  420.         Enabled is true; Shown is false; 
  421.         X is 89; Y is 95; Width is 240; Height is 180;
  422.     end;
  423. end;
  424.  
  425.